/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/* 导航栏样式 */
.navbar {
    background-color:#333;
    color:gold;
    display: flex;
    justify-content:right;
    align-items: center;
    padding: 10px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    float: right;
    font-size: large;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
/* 主页顶部样式 */
header {
    background-color: #f2f2f2;
    display: flex;
    align-items: center;

}
header img {
    margin-right: 10px;
    width:75px;
    height:75px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.title {
    flex-direction: column;
}

.logo, .name, .motto {
    display: inline-block;
}

/* 轮播图样式 */
#slider {
    width: 100%;
    height: 300px;
    background-color: #ccc;
}

/* 最新竞赛模块样式 */
section {
    padding: 15px 15px 0;
}

section h2 {
    margin: 0;
    font-size: 20px;
}

#competitions-category ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
}

#competitions-category li {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#latest-competitions ul {
    list-style-type: none;
    padding: 0;
}

#latest-competitions li {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

/* 热门竞赛模块样式 */
#popular-competitions ul {
    list-style-type: none;
    padding: 0;
}

#popular-competitions li {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: black;
}

/* 关于我们样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

footer .about-us {
    font-size: 12px;
    text-align: justify;
}
footer p {
    margin: 0;
    font-size: 12px;
}